#!/usr/bin/python
# -*- coding: UTF-8 -*-

from UtilPackge import Logger

def sureVarTypes(var):

   try:
        if isinstance(var,int):
            return int(var)

        elif isinstance(var,list):
            return list(var)

        elif isinstance(var,tuple):
            return tuple(var)

        elif isinstance(var,dict):
            return dict(var)

        elif isinstance(var,str):
            return str(var)

        elif isinstance(var,float):
            return float(var)
   except:
       Logger.logger.error("没有找到要转化的数据类型，请检查")
       pass